<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <script>

   </script>
   <!--绝对路径的写法-->
<!--   <a th:href="@{http://localhost:9090/detail(id=1)} ">view</a>-->
   <!--相对路径的写法-->
   <a th:href="@{/detail(id=1)}">view</a>
</body>
</html>